package ru.budget.mobile.data.sources.local.room

import androidx.room.*
import ru.budget.mobile.data.sources.local.entities.ConsumptionDB

@Dao
interface ConsumptionDAO {

    @Query("SELECT * FROM consumptions")
    suspend fun consumptionList(): List<ConsumptionDB>

    @Insert(onConflict = OnConflictStrategy.IGNORE)
    suspend fun addConsumption(consumption: ConsumptionDB): Long
}
